Front-End Fundamentals: A practical guide to front-end web development. by Joe Fender & Carwin Young
Author:Joe Fender & Carwin Young [Fender, Joe]
Language: eng
Format: epub
Published: 2015-02-10T22:00:00+00:00
SCSS syntax
1 #main { 2 background #ffffff; 3 4 article { 5 margin: 0 auto; 6 color: #000000; 7 8 .author { 9 background: #cecece; 10 padding: 10px; 11 } 12 13 } 14 15 }
CSS Output
1 #main { 2 background: #ffffff; 3 } 4 #main article { 5 margin: 0 auto; 6 color: #000000; 7 } 8 #main article .author { 9 background: #cecece; 10 padding: 10px; 11 }
Selecting parents with &
Another handy feature of nesting that Sass provides is a way to reference the parent selector using &. This is particularly handy when you want a nested selector to have a different style when its parent is slightly different, for instance, when the parent has an extra class or state. An easy example of this parent selector usage is styling the various states of a link:
Sass syntax
1 a 2 color: blue 3 4 &:hover 5 color: green 6 7 .some-class & 8 color: purple
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(27123)
Hello! Python by Anthony Briggs(25975)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(25313)
Kotlin in Action by Dmitry Jemerov(24417)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(23613)
Dependency Injection in .NET by Mark Seemann(23333)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(21964)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(20870)
Grails in Action by Glen Smith Peter Ledbrook(19889)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17084)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(16851)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(14483)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(12602)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11877)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10663)
Hit Refresh by Satya Nadella(9259)
The Kubernetes Operator Framework Book by Michael Dame(8600)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8455)
Robo-Advisor with Python by Aki Ranin(8394)